package homework;

public class test2 {
    public static void main(String[] args) {
        int count = 0;
        for (int i = 1; i <= 100; i++) {
            if (i % 10 == 9 || i / 10 % 10 == 9) {
                continue;
            }
            System.out.print(i + " ");
            count++;
            if (count % 5 == 0) {
                System.out.println();
            }

            }
        if (count % 5 != 0) {
            System.out.println();
        }

    }
}
